package com.my.validated.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author timo 2021/4/13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OnlineCourseChapterSaveVo{
    /** 章节名称 */
    @NotBlank
    private String name;
    /** 视频数量 */
    @NotNull
    private Integer videoNum;
    /** 排序 */
    private Integer sort;
    /**视频*/
    @Valid
    @NotNull
    @Size(min = 1)
    private ValidList<OnlineCourseVideoSaveVo> onlineCourseVideoVos;
}

